home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 …ember: Reference Library / Dev.CD Dec 00 RL Disk 1.toast / mac / Technical Documentation / Develop / develop Issue 18 / develop Issue 18 code / Graphics Speed on PwrPC.sea / Graphics Speed on PwrPC / main.h < prev   
MacBinary  |  1994-02-28  |  1.8 KB  |  [TEXT/MMCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Feb 28 15:30:21 1994, modified Mon Feb 28 15:30:21 1994, creator 'MMCC', type ASCII, 1217 bytes "main.h" , at 0x541 382 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-4K) default (weak)
16% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MMCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 6d 61 69 6e 2e 68 | 00 00 00 00 00 00 00 00 |..main.h|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 01 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 04 c1 00 | 00 01 7e a9 98 04 dd a9 |........|..~.....|
|00000060| 98 04 dd 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 11 5c 00 00 |........|.....\..|
|00000080| 23 69 66 6e 64 65 66 20 | 5f 5f 51 44 4f 46 46 53 |#ifndef |__QDOFFS|
|00000090| 43 52 45 45 4e 5f 5f 0d | 23 09 69 6e 63 6c 75 64 |CREEN__.|#.includ|
|000000a0| 65 20 3c 51 44 4f 66 66 | 73 63 72 65 65 6e 2e 68 |e <QDOff|screen.h|
|000000b0| 3e 0d 23 65 6e 64 69 66 | 0d 0d 76 6f 69 64 09 49 |>.#endif|..void.I|
|000000c0| 6e 69 74 54 6f 6f 6c 62 | 6f 78 28 20 76 6f 69 64 |nitToolb|ox( void|
|000000d0| 20 29 3b 0d 76 6f 69 64 | 09 4d 61 69 6e 45 76 65 | );.void|.MainEve|
|000000e0| 6e 74 4c 6f 6f 70 28 20 | 76 6f 69 64 20 29 3b 0d |ntLoop( |void );.|
|000000f0| 0d 2f 2a 20 45 76 65 6e | 74 20 68 61 6e 64 6c 69 |./* Even|t handli|
|00000100| 6e 67 20 72 6f 75 74 69 | 6e 65 73 20 2a 2f 0d 0d |ng routi|nes */..|
|00000110| 76 6f 69 64 09 44 6f 45 | 76 65 6e 74 28 20 45 76 |void.DoE|vent( Ev|
|00000120| 65 6e 74 52 65 63 6f 72 | 64 20 2a 65 76 65 6e 74 |entRecor|d *event|
|00000130| 20 29 3b 0d 0d 76 6f 69 | 64 09 44 6f 4b 65 79 50 | );..voi|d.DoKeyP|
|00000140| 72 65 73 73 28 20 45 76 | 65 6e 74 52 65 63 6f 72 |ress( Ev|entRecor|
|00000150| 64 20 2a 65 76 65 6e 74 | 20 29 3b 0d 76 6f 69 64 |d *event| );.void|
|00000160| 09 44 6f 4d 6f 75 73 65 | 44 6f 77 6e 28 20 45 76 |.DoMouse|Down( Ev|
|00000170| 65 6e 74 52 65 63 6f 72 | 64 20 2a 65 76 65 6e 74 |entRecor|d *event|
|00000180| 20 29 3b 0d 76 6f 69 64 | 09 44 6f 55 70 64 61 74 | );.void|.DoUpdat|
|00000190| 65 28 20 45 76 65 6e 74 | 52 65 63 6f 72 64 20 2a |e( Event|Record *|
|000001a0| 65 76 65 6e 74 20 29 3b | 0d 76 6f 69 64 09 44 6f |event );|.void.Do|
|000001b0| 4d 65 6e 75 43 6f 6d 6d | 61 6e 64 28 20 6c 6f 6e |MenuComm|and( lon|
|000001c0| 67 20 6d 65 6e 75 52 65 | 73 75 6c 74 20 29 3b 0d |g menuRe|sult );.|
|000001d0| 0d 42 6f 6f 6c 65 61 6e | 09 49 73 41 70 70 57 69 |.Boolean|.IsAppWi|
|000001e0| 6e 64 6f 77 28 20 57 69 | 6e 64 6f 77 50 74 72 20 |ndow( Wi|ndowPtr |
|000001f0| 77 69 6e 64 6f 77 20 29 | 3b 0d 42 6f 6f 6c 65 61 |window )|;.Boolea|
|00000200| 6e 09 49 73 44 41 57 69 | 6e 64 6f 77 28 20 57 69 |n.IsDAWi|ndow( Wi|
|00000210| 6e 64 6f 77 50 74 72 20 | 77 69 6e 64 6f 77 20 29 |ndowPtr |window )|
|00000220| 3b 0d 42 6f 6f 6c 65 61 | 6e 09 49 73 44 69 61 6c |;.Boolea|n.IsDial|
|00000230| 6f 67 57 69 6e 64 6f 77 | 28 20 57 69 6e 64 6f 77 |ogWindow|( Window|
|00000240| 50 74 72 20 77 69 6e 64 | 6f 77 20 29 3b 0d 0d 47 |Ptr wind|ow );..G|
|00000250| 57 6f 72 6c 64 50 74 72 | 20 47 65 74 50 69 63 74 |WorldPtr| GetPict|
|00000260| 57 6f 72 6c 64 28 52 65 | 63 74 20 2a 73 72 63 52 |World(Re|ct *srcR|
|00000270| 65 63 74 2c 20 73 68 6f | 72 74 20 64 65 70 74 68 |ect, sho|rt depth|
|00000280| 2c 20 73 68 6f 72 74 20 | 70 69 63 74 49 44 29 3b |, short |pictID);|
|00000290| 0d 0d 76 6f 69 64 09 44 | 6f 4e 65 77 57 69 6e 64 |..void.D|oNewWind|
|000002a0| 6f 77 28 76 6f 69 64 29 | 3b 0d 76 6f 69 64 09 44 |ow(void)|;.void.D|
|000002b0| 6f 43 6f 6e 74 65 6e 74 | 43 6c 69 63 6b 28 45 76 |oContent|Click(Ev|
|000002c0| 65 6e 74 52 65 63 6f 72 | 64 20 2a 65 76 65 6e 74 |entRecor|d *event|
|000002d0| 2c 20 57 69 6e 64 6f 77 | 50 74 72 20 77 69 6e 29 |, Window|Ptr win)|
|000002e0| 3b 0d 76 6f 69 64 09 43 | 6c 6f 73 65 41 6e 79 57 |;.void.C|loseAnyW|
|000002f0| 69 6e 64 6f 77 28 57 69 | 6e 64 6f 77 50 74 72 20 |indow(Wi|ndowPtr |
|00000300| 77 69 6e 64 6f 77 29 3b | 0d 76 6f 69 64 09 44 6f |window);|.void.Do|
|00000310| 55 70 64 61 74 65 57 69 | 6e 64 6f 77 28 45 76 65 |UpdateWi|ndow(Eve|
|00000320| 6e 74 52 65 63 6f 72 64 | 20 2a 65 76 65 6e 74 29 |ntRecord| *event)|
|00000330| 3b 0d 76 6f 69 64 09 49 | 6e 76 61 6c 69 64 61 74 |;.void.I|nvalidat|
|00000340| 65 53 63 72 6f 6c 6c 62 | 61 72 73 28 57 69 6e 64 |eScrollb|ars(Wind|
|00000350| 6f 77 50 74 72 20 74 68 | 65 57 69 6e 64 6f 77 29 |owPtr th|eWindow)|
|00000360| 3b 0d 0d 70 61 73 63 61 | 6c 20 76 6f 69 64 09 4d |;..pasca|l void.M|
|00000370| 79 43 6f 70 79 50 69 78 | 65 6c 73 28 42 69 74 4d |yCopyPix|els(BitM|
|00000380| 61 70 50 74 72 20 73 72 | 63 42 69 74 73 2c 20 42 |apPtr sr|cBits, B|
|00000390| 69 74 4d 61 70 50 74 72 | 20 64 73 74 42 69 74 73 |itMapPtr| dstBits|
|000003a0| 2c 0d 09 09 09 09 09 20 | 52 65 63 74 20 2a 73 72 |,...... |Rect *sr|
|000003b0| 63 52 65 63 74 2c 20 52 | 65 63 74 20 2a 64 73 74 |cRect, R|ect *dst|
|000003c0| 52 65 63 74 2c 20 0d 09 | 09 09 09 09 20 73 68 6f |Rect, ..|.... sho|
|000003d0| 72 74 20 6d 6f 64 65 2c | 20 52 67 6e 48 61 6e 64 |rt mode,| RgnHand|
|000003e0| 6c 65 20 6d 61 73 6b 29 | 3b 0d 0d 0d 23 64 65 66 |le mask)|;...#def|
|000003f0| 69 6e 65 20 4e 49 4c 09 | 09 09 09 30 4c 0d 23 64 |ine NIL.|...0L.#d|
|00000400| 65 66 69 6e 65 20 4d 41 | 58 4c 4f 4e 47 09 09 09 |efine MA|XLONG...|
|00000410| 30 78 37 46 46 46 46 46 | 46 46 0d 0d 23 64 65 66 |0x7FFFFF|FF..#def|
|00000420| 69 6e 65 09 6b 4e 65 77 | 57 69 6e 64 6f 77 49 64 |ine.kNew|WindowId|
|00000430| 09 31 32 38 0d 23 64 65 | 66 69 6e 65 09 6b 41 62 |.128.#de|fine.kAb|
|00000440| 6f 75 74 41 6c 65 72 74 | 49 64 09 31 32 38 0d 23 |outAlert|Id.128.#|
|00000450| 64 65 66 69 6e 65 09 6b | 4d 65 6e 75 42 61 72 49 |define.k|MenuBarI|
|00000460| 64 09 09 31 32 38 0d 0d | 23 64 65 66 69 6e 65 09 |d..128..|#define.|
|00000470| 6d 41 70 70 6c 65 09 09 | 09 31 32 38 09 09 09 2f |mApple..|.128.../|
|00000480| 2a 20 41 70 70 6c 65 20 | 6d 65 6e 75 20 2a 2f 0d |* Apple |menu */.|
|00000490| 65 6e 75 6d 09 7b 20 69 | 41 62 6f 75 74 20 3d 20 |enum.{ i|About = |
|000004a0| 31 20 7d 3b 0d 0d 23 64 | 65 66 69 6e 65 09 6d 46 |1 };..#d|efine.mF|
|000004b0| 69 6c 65 09 09 09 31 32 | 39 09 09 09 2f 2a 20 46 |ile...12|9.../* F|
|000004c0| 69 6c 65 20 6d 65 6e 75 | 20 2a 2f 0d 65 6e 75 6d |ile menu| */.enum|
|000004d0| 09 7b 20 69 51 75 69 74 | 20 3d 20 31 20 7d 3b 0d |.{ iQuit| = 1 };.|
|000004e0| 0d 23 64 65 66 69 6e 65 | 20 6d 45 64 69 74 09 09 |.#define| mEdit..|
|000004f0| 09 31 33 30 09 09 09 2f | 2a 20 45 64 69 74 20 6d |.130.../|* Edit m|
|00000500| 65 6e 75 20 2a 2f 0d 65 | 6e 75 6d 09 7b 20 69 55 |enu */.e|num.{ iU|
|00000510| 6e 64 6f 20 3d 20 31 2c | 20 69 45 64 69 74 53 65 |ndo = 1,| iEditSe|
|00000520| 70 2c 20 69 43 75 74 2c | 20 69 43 6f 70 79 2c 20 |p, iCut,| iCopy, |
|00000530| 69 50 61 73 74 65 2c 20 | 69 43 6c 65 61 72 20 7d |iPaste, |iClear }|
|00000540| 3b 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.......|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000590| 62 72 65 61 6b 3b 0d 09 | 09 09 0d 09 09 63 61 73 |break;..|.....cas|
|000005a0| 65 20 6d 45 64 69 74 3a | 0d 09 09 09 73 77 69 74 |e mEdit:|....swit|
|000005b0| 06 6d 61 69 6e 2e 68 b4 | 02 00 00 00 54 45 58 54 |.main.h.|....TEXT|
|000005c0| 4d 4d 43 43 01 00 00 34 | 01 14 00 00 00 00 19 04 |MMCC...4|........|
|000005d0| 00 00 54 45 58 54 4d 4d | 43 43 01 00 00 34 01 14 |..TEXTMM|CC...4..|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 a9 7f d1 3b 00 00 | 04 c1 00 00 01 7e 2f 2a |.....;..|.....~/*|
|00000600| 20 73 69 6e 63 65 20 77 | 65 20 64 6f 6e d5 74 20 | since w|e don.t |
|00000610| 64 6f 20 61 6e 79 20 45 | 64 69 74 69 6e 67 20 2a |do any E|diting *|
|00000620| 2f 0d 09 09 09 09 63 61 | 73 65 20 69 55 6e 64 6f |/.....ca|se iUndo|
|00000630| 3a 0d 09 09 09 09 63 61 | 73 65 20 69 43 75 74 3a |:.....ca|se iCut:|
|00000640| 0d 09 09 09 09 63 61 73 | 65 20 69 43 6f 70 79 3a |.....cas|e iCopy:|
|00000650| 0d 09 09 09 09 63 61 73 | 65 20 69 50 61 73 74 65 |.....cas|e iPaste|
|00000660| 3a 0d 09 09 09 09 63 61 | 73 65 20 69 43 6c 65 61 |:.....ca|se iClea|
|00000670| 72 3a 0d 09 09 09 09 09 | 28 76 6f 69 64 29 20 53 |r:......|(void) S|
|00000680| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006a0| 00 00 00 00 00 00 00 03 | 00 04 00 56 00 18 01 c8 |........|...V....|
|000006b0| 02 7c 00 56 00 18 01 c8 | 02 7c a9 7f d1 83 00 00 |.|.V....|.|......|
|000006c0| 03 6a 00 00 03 6a 00 00 | 01 7a 01 00 00 00 01 00 |.j...j..|.z......|
|000006d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 b9 52 3c |...L...L|...2..R<|
|000006e0| 12 bc 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|000006f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+